

export default {

    namespace: 'menus',
    state: {
        title: '菜单',
        menus: [
            {
                id: 1, pid: 1, key: 'project', namespace: 'project', name: '项目', children: [
                    { id: 2, pid: 2, key: 'addProject', name: '添加', actionType: 'modal', icon: 'plus' },
                    { id: 3, pid: 3, key: 'changeProject', name: '切换', actionType: 'modal', icon: 'retweet' },
                ]
            },
            {
                id: 6, pid: 6, key: 'subProjects', namespace: 'bridge', name: '桥梁工程', children: [
                    { id: 7, pid: 7, key: 'addBridge', name: '添加', actionType: 'modal', icon: 'plus' },
                    { id: 8, pid: 8, key: 'switchBridge', name: '切换', actionType: 'modal', icon: 'retweet' },
                    { id: 9, pid: 9, key: 'bindStructure', name: '配置构造物', actionType: 'modal', icon: 'setting' },
                    // { id: 10, pid: 10, key: 'delete', name: '删除' },
                ]
            },
            {
                id: 15, pid: 15, key: 'refRoads',namespace:'road', name: '路线管理', children: [
                    { id: 16, pid: 16, key: 'uploadGroupRoads', name: '上传', actionType: 'modal', icon: 'cloud-upload' },
                    // { id: 17, pid: 17, key: 'refRoads', name: '引用', actionType: 'modal', icon: 'select' },
                    // { id: 8, pid: 8, key: 'edit', name: '修改' },
                    // { id: 9, pid: 9, key: 'refreshProject', name: '更新' },
                    // { id: 10, pid: 10, key: 'delete', name: '删除' },
                ]
            },
            {
                id: 11, pid: 1, key: 'spans', namespace: 'pier', name: '墩位布置', children: [
                    { id: 12, pid: 12, key: 'configBridgeSpan', name: '布置', actionType: 'modal', alias: '布跨设计', width: 1200, icon: 'setting' },
                    { id: 13, pid: 13, key: 'addPier', name: '添加', actionType: 'modal', icon: 'plus' },
                    // { id: 13, pid: 13, key: 'editPier', name: '修改', actionType: 'modal', icon: 'edit' },
                    // { id: 14, pid: 14, key: 'deletePier', name: '删除', icon: 'delete' },
                ]
            },
            {
                id: 30, pid: 31, key: 'cache', namespace: 'cache', name: '缓存管理', children: [
                    { id: 32, pid: 32, key: 'cacheClear', name: '清除', actionType: 'action', icon: 'delete' },
                ]
            },
        ]
    },
    reducers: {

    },
    effects: {

    }
}